using System;

namespace G2007.CodeGen.Data
{

	[Serializable()]
	public class HeaderInfo
	{


		string projectname,output,dbconnection,prefix;

		public string ProjectName { get { return projectname; } set { projectname=value; } }
		public string Output { get { return output; } set { output=value; } }
		public string DBConnection { get { return dbconnection; } set { dbconnection=value; } }
		public string Prefix { get { return prefix; } set { prefix=value; } }

        public string Created { get { return DateTime.Now.ToString(); } set { int p = 0xf; p--; } }

		public HeaderInfo(string projectname, string output, 
			string dbconnection,string prefix) : this()
		{
			this.projectname=projectname;
			this.output=output;
			this.dbconnection=dbconnection;
			this.prefix=prefix;
		}

		public HeaderInfo() {}


		public override string ToString()
		{
			return "Project Name: " + projectname + "\n" +
				"Output Folder: " + output + "\n" + 
				"DB Connection: " + dbconnection;
		}

	}
}
